package com.peter.design.pattern.decorator.battercake.v2;

/**
 * @Auther: 肖冬
 * @Date: 2020/7/27 16:03
 * @Description:
 */
public class Test {

    public static void main(String[] args) {

        Battercake battercake;

        battercake = new BaseBattercake();

        battercake = new EggDecorator(battercake);

        battercake = new EggDecorator(battercake);

        battercake = new SauageDecorator(battercake);

        System.out.println(battercake.getMsg() + ",总价" + battercake.getPrice());

    }
}
